package com.ljl.mvvmdemo.db.entity

import androidx.room.Entity
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.ljl.mvvmdemo.util.StringConverter

@Entity
@TypeConverters(StringConverter::class)
data class PosMachine(@PrimaryKey val pos_machine_num: Long = 0,
                      val branch_num: Int = 0,
                      val storehouse_num: Int = 0,
                      val pos_machine_name: String = "",
                      val pos_machine_terminal_id: String = "",
                      val pos_machine_memo: String = "",
                      val pos_machine_enabled: Boolean = false,
                      val pos_machine_sequence: Int = 0,
                      val stall_num: Int = 0,
                      val merchant_num: Int = 0,
                      val merchant_branch_id: String = "",
                      val ai_no: String = "", //乐檬ai激活码
                      val ai_version: String = "", //库版本号(非乐檬ai需加上实际配置的名称，如：AI_EVO、AI_YOYO)
                      val out_account_id: String = "", //外部子商户号
                      val pos_machine_token: String = "",//token用于网络请求
                      val pos_machine_token_create_time: String = "", //token创建时间48小时过期
                      val pos_machine_last_upload: String = "", //最后上传时间
                      val pos_machine_last_start: String = "", //本机器最后使用时间
                      val token_request_id: String = "", //uuid, refreshToken时生成该值, 用于refreshToken失败后fetchToken
                      val pos_machine_set_up: String = "", //按商品、按商品类别
                      val category_codes: List<String> = arrayListOf() //指定类别
)
